/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.project.entity;

import com.jeeplus.modules.sys.entity.User;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 项目成员表Entity
 * @author 卢经纬
 * @version 2019-04-10
 */
public class ProjectMember extends DataEntity<ProjectMember> {
	
	private static final long serialVersionUID = 1L;
	private ProjectInfo projectInfo;		// 项目外键 父类
	private User tuser;		// 用户名
	
	public ProjectMember() {
		super();
	}

	public ProjectMember(String id){
		super(id);
	}

	public ProjectMember(ProjectInfo projectInfo){
		this.projectInfo = projectInfo;
	}

	public ProjectInfo getProjectInfo() {
		return projectInfo;
	}

	public void setProjectInfo(ProjectInfo projectInfo) {
		this.projectInfo = projectInfo;
	}
	
	@ExcelField(title="用户名", fieldType=User.class, value="tuser.name", align=2, sort=2)
	public User getTuser() {
		return tuser;
	}

	public void setTuser(User tuser) {
		this.tuser = tuser;
	}
	
}